import * as types from './mutation-types'
import Vue from 'vue'

// 变化 创建一个对象存储一系列我们接下来要写的 mutation 函数
export const mutations = {
  [types.TITLE] (state, current) {
    state.title = current
  },
  [types.PRIMARY_COLOR](s,c){
    s.primaryColor = c
  }
};
